
project(demo)


file(GLOB SRC_LIST
    "src/anb/app/demo/*.cc"
    "src/anb/app/demo/*.h"
    )

add_executable(demo ${SRC_LIST})

target_link_libraries(demo libuv libprotobuf net proto)

if(MSVC)
    set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /NODEFAULTLIB:LIBCMT")
    target_link_libraries(demo Ws2_32 Psapi Iphlpapi)
endif(MSVC)

